
import { selList, selById, followUpListOfficeReturn, queryAllExportData, changeStatus } from '@/services/followUpFormalDatabaseApi';

export default {
    namespace: 'followUpFormalDatabase',

    state: {

    },

    effects: {

        /**
            * 分页
            * @param payload
            * @param call
            * @param put
            * @returns {Generator<*, *, *>}
            */
        *selList({ payload }, { call, put }) {
            const response = yield call(selList, payload);
            return response;
        },


        /**
         * 详情
        * */
        *selById({ payload }, { call, put }) {
            const response = yield call(selById, payload);
            return response;
        },


        /**
        * 回退
         * */
        *followUpListOfficeReturn({ payload }, { call, put }) {
            const response = yield call(followUpListOfficeReturn, payload);
            return response;
        },
        /**
       * 点击导出列表信息
       * @param payload
       * @param call
       * @param put
       * @returns {Generator<*, *, *>}
       */
        *queryAllExportData({ payload }, { call, put }) {
            const response = yield call(queryAllExportData, payload);
            return response;
        },
        /**
                * 回退
                 * */
        *changeStatus({ payload }, { call, put }) {
            const response = yield call(changeStatus, payload);
            return response;
        },


    },

    reducers: {

    },
};
